import {
  genId,
  downloadFileByBase64,
} from "../utils/index";

export default async function px2png({ main }) {
  let base64 = await main.createBase64();
  downloadFileByBase64(base64, genId(8));
}
